
public class Command {

    public Command(String st) {
        int index = st.indexOf(" ");
        if (index > 0) {
        command = st.substring(0, index);
        args = st.substring(1+index);
        } else {
            command = st;
            args = "";
        }
    }

    public boolean equals(String st) {
        if(command.equals(st))
            return true;
        return false;
    }

    public String getArgs() {
        return args;
    }

    String command, args;
}